<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:h="http://java.sun.com/jsf/html"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
    
        <h:form>

		    <p:growl id="growl" showDetail="true"/>
		
			<h:panelGrid columns="1">  
			
				<p:panelGrid columns="2">  
				    <f:facet name="header">  
				        Cadastro  
				    </f:facet>  
				  
				    <h:outputLabel for="usrnome" value="Usuário: *" />  
				    <p:inputText id="usrnome" value="#{cadastroAction.usuarioNome}" required="true" label="usuario" />  
				  
				    <h:outputLabel for="senha" value="Senha: *" />  
				    <p:password id="senha" value="#{cadastroAction.usuarioSenha}" required="true" label="senha"/>  
				  
				    <h:outputLabel for="nome" value="Nome *" />  
				    <p:inputText id="nome" value="#{cadastroAction.pessoaNome}" required="true" label="nome" />  
				  
				    <h:outputLabel for="cpf" value="CPF *" />  
				    <p:inputText id="cpf" value="#{cadastroAction.pessoaCpf}" required="true" label="cpf"/>  
				  
				    <f:facet name="footer">  
				    	<p:commandButton value="Cadastrar" icon="ui-icon-check" 
				    	actionListener="#{cadastroAction.confirma()}"   
            			ajax="false" /> 
				        <p:button value="Cancelar" icon="ui-icon-question"
			        	outcome="#{cadastroAction.cancela()}" /> 
				    </f:facet>  
				</p:panelGrid>  
			
			</h:panelGrid>  
		
		</h:form>
			
        
    </h:body>
</html>
